<?php
$path_root = $_SERVER['DOCUMENT_ROOT'];
require_once($path_root."/AppSaleOnline/model/invoice.php");
$invoice_id = $_POST['invoice_id'];
$username = $_POST['username'];
$email = $_POST['email'];
$address = $_POST['address'];
$sum_total = $_POST['sum_total'];

$obj_invoice = new Invoice();

$msg = $obj_invoice->save_invoice_into_database($invoice_id, $username, $email, $address, $sum_total);

echo json_encode($msg);